import About from "../pages/About"
import Home from "../pages/Home"
import News from "../pages/News"
import Message from "../pages/Message"
const routes = [
  {path:"/About",component:About},
  {
    path:"/Home",
    component:Home,
    children:[
      // path:不能以/开头
      {path:"News",component:News},
      {path:"Message",component:Message},
      {path:"",redirect:"News"}
    ]
  },
  {path:"/",redirect:"/About"}
]

export default routes
